//
//  DisCoverDescViewController.m
//  赵彬旭
//
//  Created by lanou3g on 16/1/15.
//  Copyright © 2016年 赵彬旭. All rights reserved.
//

#import "DisCoverDescViewController.h"

#define DISCOVERDESC_URL @"http://web.breadtrip.com/trips/%@/"




@interface DisCoverDescViewController ()<UIWebViewDelegate>

@property(nonatomic,strong)UIWebView *disCoverDescWebView;

@end

@implementation DisCoverDescViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.disCoverDescWebView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    
    _disCoverDescWebView.delegate = self;
    
    
  
    
    
    
    NSString *str =[NSString stringWithFormat:DISCOVERDESC_URL,_string];
    
    NSURL *url = [NSURL URLWithString:str];
    
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    
    [self.view addSubview:_disCoverDescWebView];
    
   // NSLog(@"44 %@",str);
    
    [_disCoverDescWebView loadRequest:request];
    
    
    
}






-(void)webViewDidFinishLoad:(UIWebView *)webView{

  NSString *str = @"document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust= '120%'";


    [_disCoverDescWebView stringByEvaluatingJavaScriptFromString:str];
    
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
